package com.wenheng.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Auther: 文恒
 * @Date: 2021/3/24 - 03 - 24 -11:07
 * @Description:com.wenheng.client
 * @version:1.0
 */
@FeignClient("commodity")
@Component
public interface SeckillClient {
    @GetMapping("/commodity/findSeckill/Commodity")
    Map<String,Object> findSeckill(@RequestParam("id") Integer id);
}
